Skip to content

Modify setPassword.sh to work with multiple PDBs #549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PaulNeumann
Copy link
Contributor

Modify the setPassword.sh script for all single-instance database projects (except 11g XE) to correctly set the PDBADMIN password when one or more PDBs have been added.

The updated script is identical for all 8 affected projects. Instead of parsing the directory names under $ORACLE_BASE/oradata/$ORACLE_SID to find the name of the PDB (which doesn't work when there are multiple PDBs), it queries v$pdbs and creates a PL/SQL script that sets the PDBADMIN password in all open PDBs.

Tested with both VirtualBox and libvirt providers.

Fixes #295

Signed-off-by: Paul Neumann [email protected]

Modify the setPassword.sh script for all single-instance database
projects (except 11g XE) to correctly set the PDBADMIN password when
one or more PDBs have been added.

The updated script is identical for all 8 affected projects. Instead
of parsing the directory names under $ORACLE_BASE/oradata/$ORACLE_SID
to find the name of the PDB (which doesn't work when there are
multiple PDBs), it queries v$pdbs and creates a PL/SQL script that
sets the PDBADMIN password in all open PDBs.

Tested with both VirtualBox and libvirt providers.

Fixes oracle#295

Signed-off-by: Paul Neumann <[email protected]>
@PaulNeumann PaulNeumann requested a review from gvenzl as a code owner August 11, 2025 02:12
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Oracle 18.4.0-XE: setPassword.sh fails for PDBADMIN
1 participant